package com.hengxing.controller;

public class Code {
    //业务功能操作正常编码
    public static final Integer SAVE_OK = 20011;
    public static final Integer DELETE_OK = 20021;
    public static final Integer UPDATA_OK = 20031;
    public static final Integer GET_OK = 20041;

    public static final String  SAVE_OK_MSG = "保存成功";
    public static final String DELETE_OK_MSG = "删除成功";
    public static final String UPDATA_OK_MSG = "修改成功";
    public static final String GET_OK_MSG = "查询成功";

    //业务功能操作异常编码
    public static final Integer SAVE_ERR = 20010;
    public static final Integer DELETE_ERR = 20010;
    public static final Integer UPDATA_ERR = 20010;
    public static final Integer  GET_ERR = 20010;

    public static final String  SAVE_ERR_MSG = "保存失败";
    public static final String DELETE_ERR_MSG = "删除失败";
    public static final String UPDATA_ERR_MSG = "修改失败";
    public static final String GET_ERR_MSG = "查询失败";
    //系统异常编码
    public static final Integer SYSTEM_ERR = 50001;
    public static final Integer SYSTEM_TIMEOUT_ERR = 50002;

    public static final String  SYSTEM_ERR_MSG = "系统繁忙,请稍后重试";
    public static final String SYSTEM_TIMEOUT_ERR_MSG = "系统请求超时";


   //业务系统异常编码
    public static final Integer BUSINESS_ERR = 60001;
    public static final Integer BUSINESS_TIMEOUT_ERR = 60002;

    public static final String  BUSINESS_ERR_MSG = "请求异常,稍后请重试";
    public static final String BUSINESS_TIMEOUT_ERR_MSG = "请求超时,稍后请重试";

    //未知异常
    public static final Integer UNKNOW_ERR = 50003;
    public static final String UNKNOW_ERR_MSG = "系统繁忙,请稍后重试";



}
